{% extends 'base/base.html' %}

{% block title %}
    {{ object.title }} - 文件列表
{% endblock %}

{% block main %}




<div class="panel panel-default">
    <div class="panel-heading">
        <h3>类型：{{ object.title }}</h3>
        {{ object_list }}
    </div>

    <div class="panel-body">
    {% if files %}
        <ul class="list-group">
        {% for f in files %}
            <li class="list-group-item">
                <a href="{% url 'main:files_detail' f.id %}">{{ f.title }}</a>

                <span class="pull-right text-muted">{{ f.author }} · {{ f.create_time|date:'Y-m-d' }}</span>
            </li>
        {% endfor %}
        </ul>
    {% else %}
        <p class="text-muted">该分类下暂无文件。</p>
    {% endif %}
    </div>
</div>
{% endblock %}